//
//  CS_Page_MultitpleSelectView.h
//  Pods
//
//  Created by 浙大网新中研软件 on 2017/9/19.
//
//

#import <CSUIKit/CSUIKit.h>

/**
 * 多选框查询风格
 */
typedef enum : NSUInteger {
    CS_MultitpleSelectStyle_Pop,//弹出类型
    CS_MultitpleSelectStyle_QueryPanel,//查询栏风格
} CS_MultitpleSelectStyle;

/**
 * 选中框
 */
@interface CSMainSelectView : CSBaseView

/**
 * 父层级
 */
@property (nonatomic, assign) BOOL isParentLevel;

/**
 *  选中时的颜色
 */
+(id)mainSelectView:(CSSelectableModel *)model textFont:(UIFont *)font textColor:(UIColor *)textColor selectedColor:(UIColor *)selectedColor;

@end


@interface CS_Page_MultitpleSelectView : CSBaseView

/**
 * 当前已选项名称
 */
@property (nonatomic, strong) NSString *selectNames;

/**
 * 当前已选项编码
 */
@property (nonatomic, strong) NSString *selectCodes;

/**
 * 是否只有单层级
 */
@property (nonatomic, assign) CS_MultitpleSelectStyle multitpleSelectStyle;

/**
 * 是否只有单层级
 */
@property (nonatomic, assign) BOOL isSingleLevel;

+(id)page_MultitpleSelectView:(NSString *)title selectItems:(NSArray *)selectItems savedHandler:(MultitpleSelectedBlock)savedHandler;

/**
 * 查询栏风格的多选框
 * 其中selectItems中智能是selectableModel类型
 */
+(id)page_multitpleSelectViewWithSelectItems:(NSArray *)selectItems;

/**
 * 刷新当前数据
 */
-(void)refreshData;

@end
